﻿using System.ComponentModel.DataAnnotations;
using YNTK.Dependency;

namespace YNTK.System.Entitys.Dto.Menu
{
    /// <summary>
    /// 添加菜单请求模型
    /// </summary>
    [SuppressSniffer]
    public class AddMenuRequestModel
    {
        /// <summary>
        /// 父级菜单id
        /// </summary>
        public string parentId { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        [Required(ErrorMessage = "菜单名称不能为空")]
        public string title { get; set; }

        /// <summary>
        /// 菜单编号
        /// </summary>
        [Required(ErrorMessage = "菜单编号不能为空")]
        public string code { get; set; }

        /// <summary>
        /// 菜单类型(0.目录 1.菜单)
        /// </summary>
        [Required(ErrorMessage = "菜单类型不能为空")]
        public int type { get; set; }

        /// <summary>
        /// 菜单路由
        /// </summary>
        public string route { get; set; }

        /// <summary>
        /// 菜单图标
        /// </summary>
        public string icon { get; set; }

        /// <summary>
        /// 按钮权限,多个按逗号分割
        /// </summary>
        public string authoritys { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string description { get; set; }

        /// <summary>
        /// 排序码
        /// </summary>
        public long? sortCode { get; set; }

        /// <summary>
        /// 启用/禁用,1.启用
        /// </summary>
        public int? enabledMark { get; set; }
    }
}
